<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>个人信息</title>
    <link rel="shortcut icon" th:href="@{/ico/blackLogo.ico}" />
    <link rel="stylesheet" th:href="@{/css/myselfinfo.css}" />
</head>
<body>
<div id="head"><img th:src="@{/images/logo2real.png}" ></div>

<div id="Box">
    <div id="up">
        <a th:href="@{/main}">
            <div id="left">
                <img th:src="@{/images/user.png}" />
                <span>[[${session.player.getRealname()}]]  首页</span>
            </div>
        </a>
        <div id="right">
            <span>场次：100场</span>
            <br>
            <span>积分：325</span>
        </div>
    </div>

    <div id="btn">
        修改信息
    </div>
    <div id="down"  class="hidden">


        <form th:action="@{/player/update}" method="post">
            <h3>修改信息</h3>
            <div>原来的姓名：[[${session.player.getRealname()}]]</div>
            <span>修改新姓名：</span><input id="stuno" type="text" name="realname"  placeholder="姓名" required/><span id="stunomsg"></span><br><br>

            <div>原来的账户名：[[${session.player.getUsername()}]]</div>
            <span>账号是不能修改的！！：</span>
            <input th:value="${session.player.getUsername()}" id="username" type="text" name="username" placeholder="username" style="display: none" required />
            <span id="usermsg"></span><br><br>

            <span>输入新密码：</span><input id="password" type="password" name="password" required/><span id="pwdmsg"></span><br>
            <span>确认新密码：</span><input id="password2" type="password" /><span id="queren"></span>

            <br>
            <input class="change" type="submit" value="修改" />
            <input class="back" type="button" value="取消" />
        </form>

    </div>
</div>
</body>
<script th:src="@{/js/jquery-3.5.1.js}"></script>
<script type="text/javascript" th:src="@{/js/myselfinfo.js}"></script>
</html>
